#搜索结果页面【Error】 页面类

from selenium.webdriver.common.by import By

from utils.page_base import PageBase

class PageSearchResultError(PageBase):
    loc_errorTip=By.CSS_SELECTOR,"section.prompt_page.error strong"

    #/errors/error?message=%E8%AF%B7%E8%BE%93%E5%85%A5%E6%AD%A3%E7%A1%AE%E7%9A%84%E6%9F%A5%E8%AF%A2%E5%85%B3%E9%94%AE%E8%AF%8D
    def __init__(self,driver,base_url):
        PageBase.__init__(self,driver,base_url)


    def getErrorTipText(self):
        return self.getEleText(PageSearchResultError.loc_errorTip)
